package design_4_builder.demo2;

import design_4_builder.demo2.builder.GameCharacterA;
import design_4_builder.demo2.builder.GameCharacterB;

public class GameCharacterBuilderDemo {


	public static void main(String[] args) {
		// 构建有武器职业 剑士
		GameCharacterA swordman = new GameCharacterA()
				.theBody("剑士身体A")
				.head("剑士头部A")
				.hand("剑士手部A")
				.leg("剑士腿部A")
				.weapons("大剑A");
		System.out.println(swordman.builde().toString());

		// 构建无武器职业 圣斗士
		GameCharacterB saintSeiya = new GameCharacterB()
				.theBody("圣斗士身体")
				.head("圣斗士头部")
				.hand("圣斗士手部")
				.leg("圣斗士腿部");
		System.out.println(saintSeiya.builde().toString());


	}
}
